<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>旅游景点精选</title>
    <style>
        .categories {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            margin-top: 50px;
        }

        .category {
            flex-basis: 30%;
            padding: 5px;
        }

        .category img {
            width: 400px;
            height: 250px;
        }

        /* 顶部导航栏样式 */
        nav {
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 99;
            text-align: center; /* 居中显示 */
            display: flex;
            align-items: center;
            padding: 5px 20px;
        }

        nav img {
            height: 30px;
        }

        nav a {
            display: inline-block;
            color: #555;
            text-align: center;
            padding: 10px 60px; /* 调整导航栏每个元素的大小 */
            text-decoration: none;
        }

        nav a:hover {
            color: #000;
            background-color: #f5f5f5;
        }

        nav a.active {
            color: #4caf50;
            background-color: #fff;
        }

        .dropdown {
            position: relative;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            width: 150px;
            background-color: #f9f9f9;
            padding: 10px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        }

        .dropdown-content a {
            color: black;
            padding: 6px 16px;
            text-decoration: none;
            display: block;
        }

        .dropdown:hover .dropdown-content,
        .dropdown-content:hover {
            display: block;
        }
        /* 顶部导航栏样式 */
    </style>
</head>
<body>
<!-- 顶部导航栏 -->
<nav>
    <!-- logo -->
    <div class="dropdown">
        <a href="http://sight.travel.com/">
            <img src="https://wen-travel.oss-cn-guangzhou.aliyuncs.com/logo.jpg" alt="Logo">
        </a>
    </div>
    <div class="dropdown">
        <a href="http://sight.travel.com/theme" target="_blank">主题精选</a>
    </div>
    <div class="dropdown">
        <a href="#">联系我们</a>
    </div>
    <div class="dropdown">
        <a href="http://member.travel.com/sign" target="_blank">签到</a>
    </div>
    <div class="dropdown">
        <a href="#">我的</a>
        <div class="dropdown-content">
            <a href="#" target="_blank">我的账号</a>
            <a href="http://member.travel.com/memberOrder.html" target="_blank">我的订单</a>
            <a href="#" target="_blank">我的地址</a>
        </div>
    </div>
    <a th:if="${loginUser != null}">欢迎, [[${loginUser.username}]]</a>
    <a th:if="${loginUser == null}" href="http://auth.travel.com/login.html">你好，请登录</a>
    <a th:if="${loginUser == null}" href="http://auth.travel.com/regist.html" class="li_2">免费注册</a>
    <a th:if="${loginUser != null}" href="http://auth.travel.com/loguot.html" class="li_2">退出</a>
</nav>
、
<!-- 主题精选 -->
<div class="categories">
    <div class="category">
        <a href="http://search.travel.com/attractionList.html?keyword=&tag=古代遗址">
            <img src="https://wen-travel.oss-cn-guangzhou.aliyuncs.com/theme/ruins.png" alt="Category 1">
        </a>
        <p style="margin-left: 150px; color: #007BFF">古代遗址</p>
    </div>
    <div class="category">
        <a href="http://search.travel.com/attractionList.html?keyword=&tag=博物馆">
            <img src="https://wen-travel.oss-cn-guangzhou.aliyuncs.com/theme/museum.png" alt="Category 2">
        </a>
        <p style="margin-left: 150px; color: #007BFF">博物馆</p>
    </div>
    <div class="category">
        <a href="http://search.travel.com/attractionList.html?keyword=&tag=公园">
            <img src="https://wen-travel.oss-cn-guangzhou.aliyuncs.com/theme/parkGarden.png" alt="Category 3">
        </a>
        <p style="margin-left: 150px; color: #007BFF">公园</p>
    </div>
    <div class="category">
        <a href="http://search.travel.com/attractionList.html?keyword=&tag=主题公园">
            <img src="https://wen-travel.oss-cn-guangzhou.aliyuncs.com/theme/themeParks.png" alt="Category 4">
        </a>
        <p style="margin-left: 150px; color: #007BFF">主题公园</p>
    </div>
    <div class="category">
        <a href="http://search.travel.com/attractionList.html?keyword=&tag=自然景观">
            <img src="https://wen-travel.oss-cn-guangzhou.aliyuncs.com/theme/naturalLandscape.png" alt="Category 5">
        </a>
        <p style="margin-left: 150px; color: #007BFF">自然景观</p>
    </div>
    <div class="category">
        <a href="http://search.travel.com/attractionList.html?keyword=&tag=人文景观">
            <img src="https://wen-travel.oss-cn-guangzhou.aliyuncs.com/theme/culturalLandscape.png" alt="Category 6">
        </a>
        <p style="margin-left: 150px; color: #007BFF">人文景观</p>
    </div>
    <div class="category">
        <a href="http://search.travel.com/attractionList.html?keyword=&tag=水域风光">
            <img src="https://wen-travel.oss-cn-guangzhou.aliyuncs.com/theme/waters.png" alt="Category 7">
        </a>
        <p style="margin-left: 150px; color: #007BFF">水域风光</p>
    </div>
    <div class="category">
        <a href="http://search.travel.com/attractionList.html?keyword=&tag=生物景观">
            <img src="https://wen-travel.oss-cn-guangzhou.aliyuncs.com/theme/biologicalLandscape.png" alt="Category 8">
        </a>
        <p style="margin-left: 150px; color: #007BFF">生物景观</p>
    </div>
    <div class="category">
        <a href="http://search.travel.com/attractionList.html?keyword=&tag=民族民俗">
            <img src="https://wen-travel.oss-cn-guangzhou.aliyuncs.com/theme/ethnicFolklore.png" alt="Category 9">
        </a>
        <p style="margin-left: 150px; color: #007BFF">民族民俗</p>
    </div>
</div>

<script>
    function theme(){
        alert("")
    }
</script>
</body>
</html>

